package com.yunqiao.service.api.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: server
 * @description:
 * @author: Crocutax
 * @company: 今日速运
 * @e-mail: wangxw725@163.com
 * @create: 2019-03-04 13:39
 **/
@ApiModel(value = "忘记密码表单")
@Data
public class ForgetPasswordForm {

    @ApiModelProperty(value = "角色类型:1货主2司机", required = true, allowableValues = "1,2")
    @Min(1)
    @Max(2)
    @NotNull
    private Integer roleType;

    @ApiModelProperty(value = "手机号",required = true)
    @NotBlank(message="手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "验证码",required = true)
    @NotBlank(message="验证码不能为空")
    private String smscode;

    @ApiModelProperty(value = "新密码",required = true)
    @NotBlank(message="新密码不能为空")
    private String newPassword;


}
